home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / stut_src / usltp.h < prev    next >
C/C++ Source or Header  |  1995-10-14  |  1KB  |  64 lines

  1. /*
  2.  * Universal Serial Link Transfer Protocol
  3.  *
  4.  * Types, Membres et constantes publics
  5.  *
  6.  * 12.04.95: Created
  7.  */
  8. #ifndef _USLTP_H_
  9. #define _USLTP_H_
  10.  
  11. #include "GEMWDEF.H"
  12.  
  13.  
  14. /*
  15.  * Etats d'une session USLTP
  16.  */
  17. typedef
  18.     enum
  19.     {
  20.         USTATE_INIT,
  21.         USTATE_WAIT_LOAD,
  22.         USTATE_SYNC,
  23.         USTATE_CLASS,
  24.         USTATE_FILE,
  25.         USTATE_SIZE,
  26.         USTATE_DATA,
  27.         USTATE_EOF
  28.     }
  29.     USLTP_STATE;
  30.  
  31. /*
  32.  * R‚ponses de USLTP_Session_Process:
  33.  */
  34. typedef
  35.     enum
  36.     {
  37.         UPROCESS_CONTINUE,
  38.         UPROCESS_END,
  39.         UPROCESS_LOGICAL_HUP,            /* Appui sur Cnx/fin */
  40.         UPROCESS_PHYSICAL_HUP,            /* D‚connexion(Double Appui sur Cnx/fin) */
  41.     }
  42.     USLTP_PROCESS;
  43.  
  44.  
  45. /*
  46.  * Block de controle USLTP:
  47.  */
  48. typedef
  49.     struct
  50.     {
  51.         USLTP_STATE    State;            /* Etat courant de la session */
  52.         int            n_InDev;            /* device d'entr‚e */
  53.         int            n_OutDev;        /* device de sotie */
  54.         void        *    pVoie;            /* Voie courante (double emploi avec n_Indev et n_Outdev) */
  55.         char        *    psz_FileName;    /* Nom du fichier … envoyer */
  56.         WIPARAMS *    pWiParams;        /* Fenetre de log */
  57.         TEXTLINE    *    pRcvAcqBuf;        /* Buffer de r‚ception des acquitements */
  58.         clock_t        clock_timeout;    /* Heure du prochain timeout */
  59.     }
  60.     USLTP_CTRLBLK;
  61.     
  62.     
  63. #endif
  64.